package com.itheima.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author ZhangyiA
 * @describe:
 * @date 2021/06/24
 */

@Controller
public class TargetController {

    @RequestMapping("/target")
    public ModelAndView show(ModelAndView modelAndView){
        System.out.println("目标资源执行......");
        modelAndView.addObject("name" , "itheima");
        modelAndView.setViewName("success");
        return modelAndView;
    }

}
